package com.example.demo.study;

public class study04 {
    public String name; // 实例变量
    public void pupAge(){
        int age = 5; // 小狗的年龄
        int age2 = age +7; // 小狗的年龄乘以7
        System.out.println("小狗的年龄是 : " + age2);
    }
//    public study04(String empName){
//        name = empName;
//    }
    public static void main(String[] args) {
        study04 myPuppy = new study04();
        myPuppy.pupAge();

    }
}
